import request from '../request'

// 校园经历相关接口
// 查询校园经历列表
export const getCampusExperienceList = () => {
	return request.get('/business/resumeCampusExperience/list')
}

// 获取校园经历详细信息
export const getCampusExperienceDetail = (id) => {
	return request.get(`/business/resumeCampusExperience/${id}`)
}

// 新增校园经历
export const addCampusExperience = (params) => {
	return request.post('/business/resumeCampusExperience', params)
}

// 修改校园经历
export const updateCampusExperience = (params) => {
	return request.put('/business/resumeCampusExperience', params)
}

// 删除校园经历
export const deleteCampusExperience = (ids) => {
	return request.delete(`/business/resumeCampusExperience/${ids}`)
}

// 根据校园经历生成描述
export const generateCampusExperienceDescription = (params) => {
	return request.get(`/business/resumeCampusExperience/generateOne`, params)
} 